RTrim (str)

RTrim and TrimRight (str) are equivalent functions. However, RTrim is preferred in Basic syntax, whereas TrimRight is preferred in Crystal syntax.

Argument

str is a text String value

Returns

String value.

Action

RTrim removes all spaces to the right of the given string and returns it.

Typical uses
Examples

The following examples are applicable to both Basic and Crystal syntax:

RTrim("Al/4520/B12    ")

Returns "A1/4520/B12".

RTrim({file.REFERENCE})

Returns "Bal Fwd." where {file.REFERENCE} contains the left-justified text string "Bal Fwd.    ".

Comments

This function is designed to work like the Visual Basic function of the same name.

Related topics

Trim (str)

LTrim (str)



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com